.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

/* 应用加载状态 */
.app-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.app-loading p {
  margin-top: 16px;
  font-size: 16px;
  color: #666;
}

/* 应用信息（开发环境） */
.app-info {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  z-index: 9999;
  pointer-events: none;
}

/* 路由容器 */
.route-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 页面标题 */
.page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #333;
}

/* 页面内容 */
.page-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* 工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 搜索框 */
.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  background-color: #f8f8f8;
}

.search-box input:focus {
  background-color: white;
  border-color: #007AFF;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

/* 状态栏 */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #666;
  min-height: 32px;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #666;
}

.empty-state-description {
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.5;
}

/* 错误状态 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #e74c3c;
}

.error-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-state-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.error-state-description {
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.5;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-content {
    padding: 16px;
  }
  
  .toolbar {
    padding: 8px 16px;
    flex-wrap: wrap;
    min-height: auto;
  }
  
  .search-box {
    width: 200px;
  }
  
  .status-bar {
    padding: 6px 16px;
    flex-wrap: wrap;
  }
}